package com.college.entity;

import cn.hutool.core.date.DateTime;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 校历
 * </p>
 *
 * @author yoki
 * @since 2024-05-29
 */
@Getter
@Setter
@TableName("school_calendar_info")
@ApiModel(value = "SchoolCalendarInfo对象", description = "校历")
public class SchoolCalendarInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("学期")
    @TableField("semester")
    private String semester;

    @ApiModelProperty("上课周数")
    @TableField("weeks")
    private Integer weeks;

    @JsonFormat(pattern = "yyyy-mm-dd hh:mm:ss " ,timezone = "GMT+8")
    @ApiModelProperty("开始时间")
    @TableField("begin_time")
    private Date beginTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:MM:SS",timezone = "GMT+8")
    @ApiModelProperty("结束时间")
    @TableField("end_time")
    private Date endTime;

    @ApiModelProperty("学年")
    @TableField("school_year")
    private String schoolYear;


}
